package com.situ.studentmanagement.model;

/**
 * Created by baba on 2016/8/1.
 */
public class Goods {
    private Integer id;
    private String name;
    private String content;
    private Integer price;
    private String image;
    private Integer isfree;
    private Integer freeprice;
    private Integer typeid;
    private Integer account;





    public Integer getAccount() {
        return account;
    }

    public void setAccount(Integer account) {
        this.account = account;
    }

    public Goods(Integer id, String name, String content, Integer price, String image, Integer isfree, Integer freeprice, Integer typeid, Integer account){
        this.id=id;
        this.name=name;
        this.content=content;
        this.price=price;
        this.isfree=isfree;
        this.image=image;
        this.freeprice=freeprice;
        this.typeid=typeid;
        this.account=account;

    }



    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        image="../img/"+image;
        this.image=image;
    }

    public Integer getIsfree() {
        return isfree;
    }

    public void setIsfree(Integer isfree) {
        this.isfree = isfree;
    }

    public Integer getFreeprice() {
        return freeprice;
    }

    public void setFreeprice(Integer freeprice) {
        this.freeprice = freeprice;
    }

    public Integer getTypeid() {
        return typeid;
    }

    public void setTypeid(Integer typeid) {
        this.typeid = typeid;
    }

}
